cmake_minimum_required(VERSION 3.0.2)
project(bsm_send)

add_compile_options(-std=c++11)


find_package(catkin REQUIRED COMPONENTS
  roscpp
  v2x_msgs
  rospy
  
)

find_package(Boost REQUIRED COMPONENTS system)
find_package(jsoncpp REQUIRED COMPONENTS)
catkin_package(
 INCLUDE_DIRS include
 LIBRARIES bsm_send
 CATKIN_DEPENDS roscpp rospy
 DEPENDS system_lib
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${CMAKE_SOURCE_DIR}/bsm_send/include/GB2019
)

aux_source_directory(${CMAKE_SOURCE_DIR}/bsm_send/lib/GB2019/src gb2019)
add_library(GB 
        ${gb2019}
)


add_executable(${PROJECT_NAME}_node src/${PROJECT_NAME}_node.cpp)



target_link_libraries(${PROJECT_NAME}_node
  GB
  jsoncpp_lib
  ${catkin_LIBRARIES}
)


